package com.enhe.gck.pojo;
 import java.util.Date;
 import java.lang.String;
 import java.lang.Integer;
 import java.math.BigDecimal;
 import java.lang.Long;
 import java.lang.Float;
 import java.lang.Double;

 import com.enhe.gck.CarbonRelationType;
 import com.enhe.gck.item.GoodsHWANE16621Item;
 import com.kuangkie.carbon.record.Updatable;
 import com.kuangkie.carbon.record.annotation.Attribute;
 import com.kuangkie.carbon.record.annotation.CarbonRecord;
 import com.kuangkie.carbon.record.annotation.RecordCode;
 import com.alibaba.fastjson.annotation.JSONField;
 import com.kuangkie.carbon.record.annotation.Relation;
 import com.kuangkie.carbon.uid.model.UidManager;
 import lombok.Data;

// 产品管理
@Data
@CarbonRecord("hwane16621")
public class Goods implements Updatable{
    @JSONField(name="唯一编码")
    @RecordCode
    private Long id = UidManager.getLongUID();

    // 名称
    @JSONField(name="名称")
    @Attribute("hwan16623")
    private String name;

    @JSONField(name="类型")
    @Attribute("hwan19388")
    private String type;

    @JSONField(name="是否删除")
    @Attribute("hwan16626")
    private Boolean isDelete;

    @JSONField(name="配送")
    @Attribute("hwan19579")
    @Deprecated
    private Boolean isDelivery;
    @JSONField(name="运费($)")
    @Attribute("hwan19580")
    private BigDecimal freight;

    @JSONField(name="最低可下数量")
    @Attribute("hwan19960")
    private BigDecimal minimum;
    @JSONField(name="最高可下数量")
    @Attribute("hwan19964")
    private BigDecimal most;
    @Attribute(GoodsHWANE16621Item.基本属性组_批次类型)
    private String batchType;

    @JSONField(name = "收货类型")
    @Attribute("hwan21153")
    private String collectType;

    @JSONField(name="每吨挂牌价($)")
    @Attribute("hwan21223")
    private BigDecimal listingPrice;

    @JSONField(name="税率")
    @Attribute("hwan21446")
    private BigDecimal taxRate;

    @Relation(CarbonRelationType.RR_产品管理_甲骨文物料_甲骨文物料)
    private MaterialAll materialAll;
    @Override
    public String getRecordCode() {
        return this.id==null ? null : this.id.toString();
    }
}